package com.shao.im.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shao.im.dao.FriendsRelationsDao;
import com.shao.im.entity.FriendsRelations;
import com.shao.im.entity.vo.FriendsListVo;
import com.shao.im.service.FriendsRelationsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 好友关系表(FriendsRelations)表服务实现类
 *
 * @author makejava
 * @since 2023-07-28 16:59:40
 */
@Service("friendsRelationsService")
public class FriendsRelationsServiceImpl extends ServiceImpl<FriendsRelationsDao, FriendsRelations> implements FriendsRelationsService {

    @Override
    public List<FriendsListVo> queryFriendsList(Integer uid) {
        return getBaseMapper().queryFriendsListByMe(uid);
    }

    @Override
    public List<Integer> findFriendIdsByUserId(Integer uid) {
        return getBaseMapper().queryFidListByMe(uid);
    }
}

